package com.zx.framework.plat.position.po;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Position entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="s_position")

public class Position  implements java.io.Serializable {


    // Fields    

     private String id;
     private String owner;
     private String companyId;
     private String name;
     private String layer;
     private Boolean status;
     private String creator;
     private Timestamp createtime;


    // Constructors

    /** default constructor */
    public Position() {
    }

	/** minimal constructor */
    public Position(String id, String companyId, String name, String layer, Boolean status, String creator, Timestamp createtime) {
        this.id = id;
        this.companyId = companyId;
        this.name = name;
        this.layer = layer;
        this.status = status;
        this.creator = creator;
        this.createtime = createtime;
    }
    
    /** full constructor */
    public Position(String id, String owner, String companyId, String name, String layer, Boolean status, String creator, Timestamp createtime) {
        this.id = id;
        this.owner = owner;
        this.companyId = companyId;
        this.name = name;
        this.layer = layer;
        this.status = status;
        this.creator = creator;
        this.createtime = createtime;
    }

   
    // Property accessors
    @Id 
    
    @Column(name="ID", unique=true, nullable=false, length=64)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="OWNER", length=64)

    public String getOwner() {
        return this.owner;
    }
    
    public void setOwner(String owner) {
        this.owner = owner;
    }
    
    @Column(name="COMPANYID", nullable=false, length=64)

    public String getCompanyId() {
        return this.companyId;
    }
    
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
    
    @Column(name="NAME", nullable=false, length=50)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name="LAYER", nullable=false, length=64)

    public String getLayer() {
        return this.layer;
    }
    
    public void setLayer(String layer) {
        this.layer = layer;
    }
    
    @Column(name="STATUS", nullable=false, precision=1, scale=0)

    public Boolean getStatus() {
        return this.status;
    }
    
    public void setStatus(Boolean status) {
        this.status = status;
    }
    
    @Column(name="CREATOR", nullable=false, length=64)

    public String getCreator() {
        return this.creator;
    }
    
    public void setCreator(String creator) {
        this.creator = creator;
    }
    
    @Column(name="CREATETIME", nullable=false, length=19)

    public Timestamp getCreatetime() {
        return this.createtime;
    }
    
    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }
   








}